package com.ocom.oauth.client;

import com.ocom.common.constant.PayConfigUrl;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "payconfig")
public interface PayConfigClientService {

    @PostMapping(PayConfigUrl.URLP_getWxInfo)
    public Result getWxInfo(@RequestParam("comId") Long comId ,
                            @RequestParam("merchId")  Long merchId,
                            @RequestParam("appName") String appName);

    // 2.7.获取商户信息(getMerchInfo)
    @GetMapping(PayConfigUrl.URLP_PayConfig_GetMerchInfo)
    Result GetMerchInfo(@RequestParam("comId") Long comId,@RequestParam("parentMerchId")Long parentMerchId,
                        @RequestParam("page")  Integer page,@RequestParam("size") Integer size);

}
